import request from '@/utils/request'

// 查询候补订单列表
export function listWaitlist(query) {
  return request({
    url: '/business/waitlist/list',
    method: 'get',
    params: query
  })
}

// 查询候补订单详细
export function getWaitlist(id) {
  return request({
    url: '/business/waitlist/' + id,
    method: 'get'
  })
}

// 新增候补订单
export function addWaitlist(data) {
  return request({
    url: '/business/waitlist',
    method: 'post',
    data: data
  })
}

// 修改候补订单
export function updateWaitlist(data) {
  return request({
    url: '/business/waitlist',
    method: 'put',
    data: data
  })
}

// 删除候补订单
export function delWaitlist(id) {
  return request({
    url: '/business/waitlist/' + id,
    method: 'delete'
  })
}
